<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"> 


	<ui:composition template="t_loggedin.xhtml">

	<ui:define name="menu">
		<h:form>
			<table class="leftmenu">
				<tbody>
					<!-- default menu item, place in all pages -->
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.userinfo']}" /></th>
					</tr>
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['menu.loggedinas']}" /></th>
						<td><h:outputText value="#{userMgtBean.user}"/></td>
					</tr>				
					
					<!-- Status menu item -->					
					<tr class="leftmenuheader">
						<th colspan="2"><h:outputText value="#{msgs['menu.heading.status']}" /></th>
					</tr>
					<!-- replace with custom items -->
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['template.menu.item1']}" /></th>
						<td><h:outputText value="#{msgs['template.menu.dummy']}" /></td>
					</tr>
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['template.menu.item2']}" /></th>
						<td><h:outputText value="#{msgs['template.menu.dummy']}" /></td>
					</tr>
					<tr class="leftmenu">
						<th><h:outputText value="#{msgs['template.menu.item3']}" /></th>
						<td><h:outputText value="#{msgs['template.menu.dummy']}" /></td>
					</tr>

					<!-- 'Actions' menu items -->
					<tr class="leftmenuheader">
						<th colspan="2">
							<h:outputText value="#{msgs['menu.heading.actions']}" />
						</th>
					</tr>
					<tr class="leftmenu">
						<td colspan="2"><h:commandLink value="#{msgs['template.menu.action1']}"/></td>
					</tr>		
					<tr class="leftmenu">
						<td colspan="2"><h:commandLink value="#{msgs['template.menu.action2']}"/></td>
					</tr>

				</tbody>
			</table>
		</h:form>
	</ui:define>

	<ui:define name="body">
	    <!-- this is the actual page content  -->
		<ui:decorate template="faces/template.xhtml" />
	</ui:define>

</ui:composition>

</html>